<template>
    <view class="app">
        <load :ready="ready"></load>
		<web-view :src="url"></web-view>
		<!-- {{url}} -->
	</view>
</template>

<script>
import { mapState, mapActions, mapMutations, mapGetters } from 'vuex';
import { mixinsBase } from '@/common/js/mixins';
let that;
export default {
    mixins: [mixinsBase],
    components: {
	},
    data() {
        return {
            // ready: true,
			url: this.$config.arg1,
        };
    },
    onLoad(o) {
		if(o.title){
			uni.setNavigationBarTitle({
				title: o.title
			})
		}
		if(o.url){
			this.url = unescape(o.url);
		}
    },
    onReady() {
    },
    onUnload() {
        that = null;
    },
    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function() {
        // this.getInit(data=>{
        //      uni.stopPullDownRefresh();
        //      common.showTip('刷新成功');
        // });
    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function() {},

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function() {
        //       return {
        // 	// path,
        // 	imageUrl:config.shareImg,
        // 	// title
        // }
    },
    methods: {
        ...mapActions([])
    },
    computed: {
        ...mapState({
            userInfo: 'userInfo'
        })
    }
};
</script>

<style scoped lang="scss">
page{
	background: #f5f5f5;
}
</style>
